package com.situ.springboot.mapper;

import com.situ.springboot.pojo.entity.Admin;
import com.situ.springboot.pojo.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface AdminMapper {

    @Select("select * from admin where name=#{name} and password=#{password}")
    Admin login(String name, String password);

    Admin selectById(Integer id);

    void update(Admin admin);
}
